add view helper for the compiled javascript, hook into the route event to export the compiled javascrpt