index updating function added to gruntfile