Refactor master to make use of get_package_index()
Implement jshint