added tests and javascript for buttons
cleaned up scripts for sustainability
further cleanup of scripts for sustainability
fixed conflict between variables
attempt to fix conflicts