Fixed syntax issues

Fixed some old calls in demo and syntax issues in JUFFunction.js