Assets: Fix assets js for 1.3.1 and 1.3.2 to fix urls

Instead of looking for demos in the url look for a version and use this as the
base for the url re-write.
Fixes gh-3
Build: add package.json
1.4.1