moved init of table and select to js to provide necessary data