Merge pull request #503 from suy/commonjs

State moment dependency on package.json as well
version bump to 3.1.2
Fix versions of jQuery and Bootstrap

jQuery 1.8 doesn't work with browserify due to a bug in esprima triggered by
internal dependencies not up to date. And Bootstrap ~3.0 doesn't match any
version on npm. Changed matches to allow newer compatible versions.