fork from https://github.com/rstacruz/sparkup