undefined is not a function


notes of a javascript junkie