fixed OVG.js and added new functions