Draft for Javascript API
Merge