fixed 'onEnd' bug where render was not being 

as described in https://github.com/miguel-perez/jquery.smoothState.js/issues/19