You have a lot of errors in your scripts that show up while debug is on.
While they don't seem to cause any apparent issues, I am worried things like "variable $b undefined" will cause strange conflicts with other plugins/themes.
Please, for everyones sake, use WP_DEBUG mode while programming this plugin.