inital framework to save data...
commented with old javascript methods that are now obsolete to help with migration