fixed current doc url in _open
fixed jslint issues