add AbstractTemplate::javascript()