Big JS style update; move map creator to prototype