It would be nice to enclose all content in function and add "use strict" - this comment is for all js files