Use strict in js file, small fix in js