Auto generate javascript stub for api modules