Improved js API
play/pause