Removed fs.js and replaced with functionality in ajax.js