Fixed grunt bug which was duplicating javascript