When run as a bookmarklet in firefox, the first run it hasn't registered readable() by the time it is called. Subsequent runs work fine. This occurs whether readable is in a separate javascript: clause or not.