Handle no img template frontend js

This should close #594.  Since the frontend_js is your baby, @bamnet, I'll let you merge this if you're happy with it.  (Oh, I'm also passing the name of the template in the setup.json now.)