Updates for Firefox
Updated to use require.js
allowing returned value from createFunction
Udpates for jquery