implemented synchronous define() function in loadjsxgraph.js