fixed paths for nginx, added js_debug