restructured js into modules