Phantomjs loader class with example