Add js wrapper draft and fix type checker