Beginning javascript with DOM scripting and ajax (2013)