Renamed the index view to main since it was being picked up in favour of the route by the static middleware. Added publish to the dev dependencies to automatically publish to npm after successful test run with version bump in package.json.