minor js fixes
Merge pull request #56 from elasticsales/fix-js

Minor js fixes