TypeError with hint in rulus.js