adding curly brackets to get rid of lint errors
Merge pull request #1156 from emkay/curly-lint-rule

adding curly brackets to get rid of lint errors
use self everywhere in request.js
use self in the cookies.js
change some variable names for clarity