fix JS entry point generate error

Signed-off-by: Richard Lea <chigix@zoho.com>