Resolved issue #1 raised by @vytch, cleaned up code indenting, changed .bind to .on