Added draft JS API for first two categories from Tina & Andy.