javascript and automation