GET/PUT/POST/DELETE javascript library