This particular module is designed to be included within a Ruby on Rails application. To use this, simply add this library to your Gemfile and include some references in your appropriate files.
In your Gemfile:
#= require nifty/dialog
*= require nifty/dialog
Don't forget to run
bundle after adding the item to your Gemfile.