PhantomJs code refactored and association created between user & screen shots