added some js stuff/ fixed tables