Cleaned up unused functions from common-scripts.js
Use cookie to go between demo and select server pages.
Lots of cleanup.
Deleted unused functions.
Linear model working.
Can switch between linear and advanced model types.