core js fix
core css fix
converted tpls into js, css functions
tpl up
js up