[NGRINDER-697] Fix javascript error