A simple javascript animation utility.