Clean up errors, fs, and jquery

* minimal error clean up as per bilals notes
* rm fs
* upgraded jquery to 2.1