Add prepare mode to map (javascript)