Fixed method name deprecation.
Merge pull request #4 from njpaz/modify_demo_js

Fixed method name deprecation.