Moved the javascript to the wp_footer action
 is not an array
Removing the old HTML purifier
Added the standalone HTMLPurifier to fix some bugs
Fixing deprecation and other notices. Adjsuted the shortcodes to better detect what page it's on