Adjust template js style to rest