use strict in js file, small fix in js