More js map function editing