Implemented HTML5 LocalStorage functionality in add.php