Added "use strict" to all JavaScript files, fixed scripts accordingly