Fixed the error on "jQuery not defined"

Apparently the scripts are arranged in the wrong order. jQuery migrate
should be defined after jQuery has been defined
Changed comments on all html and js files