phantomjs script to login to irccloud in a headless environment.
First, create the config file
echo "{\"user\":\"<username>\",\"password\":\"<password>\"}" > config.json;
Then run the script
phantomjs index.js
Browse to localhost:9006. It will update every 1 second with a screenshot of the currently rendered page.