Fix bug with js grunt index