slider max should be 1 less than total steps

refs #4, fixing errors at end of slider
add missing semi-colon
encapsulate timeline functions, use customTime

currentTime actually updates so this was wrong