html5 lock library using kineticjs