force rendering .js template in Pages::AssetsController#create (and fixed asset route)
Merge pull request #16 from Crabgrass/bugfix/4218-gallery-upload-gives-500

force rendering .js template in Pages::AssetsController#create