fix javascript for activating a map section