Rename assets/javascript to javascripts
Add page_type class method