polish template js