Implements selenium for js testing