Added strict behaviour to javascript