got rid of extraneous alert in map js