output js in angular constant style

solves GH-20
fixes indentation
adds editorconfig
v0.3.9