js fix and added category query
Merge branch 'master' of github.com:jasonknight/woocommerce-json-api