fixes to buttons etc
diff --git a/erpnext/home/page/dashboard/dashboard.js b/erpnext/home/page/dashboard/dashboard.js
index 15e7cf3..08be0af 100644
--- a/erpnext/home/page/dashboard/dashboard.js
+++ b/erpnext/home/page/dashboard/dashboard.js
@@ -1,11 +1,11 @@
 pscript.onload_dashboard = function() {
 	// load jqplot
 	$.scriptPath = 'js/'
-	$.require(['jquery/jquery.jqplot.min.js', 
-	'jquery/jqplot-plugins/jqplot.barRenderer.js', 
-	'jquery/jqplot-plugins/jqplot.canvasAxisTickRenderer.min.js',
-	'jquery/jqplot-plugins/jqplot.canvasTextRenderer.min.js',
-	'jquery/jqplot-plugins/jqplot.categoryAxisRenderer.min.js']);
+	wn.require('lib/js/legacy/jquery/jquery.jqplot.min.js');
+	wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.barRenderer.js'); 
+	wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.canvasAxisTickRenderer.min.js');
+	wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.canvasTextRenderer.min.js');
+	wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.categoryAxisRenderer.min.js');
 
 
 	pscript.dashboard_settings = {