My forked version of js script from http://helplogger.blogspot.com/2012/04/simple-related-posts-widget-for-blogger.html