JS UI&DOM Canvas animation