Working with JavaScript in HTML5