splitting js into modules