Use sprintf() instead of $.sprintf(). Closes #41