Updated JS and ran through jslint