fixing js hint warnings in template js