fix script urls
add a template for menu's
don't load javascript like this, use require
use the content-size