modern javascript images control