Added phantomjs test scaffolding; examples in separate directory