Make handling of different manifest names, and rev-suffix cleaner
- move where check for if it is a manifest
- error when manifest file is not a json object
- jslinted as well