Moved script to a new file and changed table width