javascript map in head now