added a 'gotoFrame' function.