Updating library Javascript file and adding example.