trying to switch to javascript maps