simple js for automate browser interactions