Start of the javascript api for party

Signed-off-by: kevinbayes <kevin@bayes.me>