8_js_refactor_to_oo