Converting to coffeescript, generating tokens is now working.