Interface between NodeJS and CasperJS