Update tools-0.0.6.js

Added 'ready' function.