adding click area
moving static vars to separate javascript file