Generate JS stubs