Refactor JS files to use hogan_assets templates