Organize js module for table