added javascript table creation