Cleaned up jquery plugin and improved event-method.