updating three_js fun