added save button and logic to save the users js into mongo and return the mongoid