Update class.tpl.php

add all2OneFile method for parse all in-line script(and script file), and save all in one .js file for fast download page