Organized js into modules