anonymous javascript functions plus ruby constants equals a bad time