Update addList.php

Javascript fixes