Added error handling for not opening file in write.php.  Callback in ShoppingItem.js which handles write.php result, now actually handles it by accepting the return value into the callback and checking for error condition (return message starts with exclamation point).