Removed core.js, no more used.
Fixed javascript coding style

After some review, it is not recommended to name variable
with a starting _ for global variable. Changed the code to
reflect that rule.