moving $javascript references into plugin.php