move js from 404 into its own javascript file
split up the helper into a controller and view