Add javascript for creating and moving a new table. Probably buggy