Update admin-products.js

Some changes and errors with jshint/jslint