Bug in index actions in router, also a typo fix in assets.js