Automated lending club investment using CasperJS/PhantomJS API to use browser in headless mode