Solves most of the issue with intermine/intermine#394
Added a test.metabolicmine service
Cleaned up some js-isms