wrap jquery post inside an anonymous function using closure so data is set and will not be subsequently changed
cleaned up saving data code
removed extra exp variable get from backend during post