Place Scripts at the Bottom of Your Page
Global Variables Are An Incredibly Bad Idea
Stick To A Strict Coding Style
While it may seem redundant right now, trust countless developers out there that learned this the hard way – you will want to comment your code. Chances are, you’ll come back to the code months down the road, or perhaps other developers will taking a look at your code, and they will save you tons of headache. Comment when there is an important thing to say, and if you do comment, use the /* */ notation, because single-line comments can cause you problems when you minify the code.