changed name of entry form javascript to make function more clear