issue with javascript causing deployment not to work