Refactor javascript into multiple modules; #1076

Now these need to be pipelined.
Bump version to 9.1.13
Bump version to 9.1.13-dev