added strict mode to javascript