Diving into javascript with HTML5