Fixes JSLint warning and updates core JS file