updates

js event handling
js for css updating
php for functions class
db class cleanup and example usage
js app global var
js minification and nonce fixes in landing page php file