Bug: js_config is emitting js for all class level components

Emit js code only for instance level components

Signed-off-by: Karthik Krishnan <karthik@mahaswami.com>