Copy from https://github.com/inuyaksa/jquery.nicescroll