javascript API wrapper for Slack