New file: js to get index with PhantomJs