Converting js into a tpl
Fixing LP render