significant refactor of the application and specs
updated the readme with PhantomJS installation instructions