output js in angular constant style

solves GH-20