added onHide callback option
added test case for onHide callback
updated readme
added dist files, used uglifyjs for minification