JavaScript Script writing and Side Panels

Hiya!
Just wondering, are there any resources on how to access and modify the side panel controls through scripts (With JavaScript)? I’m primarily looking to automate phonetic timing and create new singer preset entries.