Update class.tpl.php

Fix bug with inline script