added get_refactored.js, post_refactored.js
worked on refactored get and post