adds js basics for map...copy from hospitally