Fixed bugs in request headers
Modified a little bit the default js file