checked for errors on JS file