removed unused parts of toys.js