minor bug fixed in js_scaffold