Add .jshintrc file and update core.js to remove errors

Bug: 62997
Change-Id: I89d46c913994bd620ae904fbd626621be4aca170