added use strict to js file