condensed secrets to one file
fixed up some js and php bugs