Fixes up some javascript. TODO: Make neon-api functions namespaced.