adjust the js code, so it can be used with weback

silkapp/rest#81