js_scaffold improved (some bug fixed