added prototype for js_processing