cs cl update, canvas update, detect js