JS: added saving of stock info