Add javascript to the table