diff --git a/scroll_to_top.js b/scroll_to_top.js
index 2b5a4ac..5b379a4 100644
--- a/scroll_to_top.js
+++ b/scroll_to_top.js
@@ -8,14 +8,14 @@ Drupal.behaviors.scroll_to_top = {
 	// append  back to top link top body if it is not
 	var exist= jQuery('#back-top').length; // exist = 0 if element doesn't exist
 	if(exist == 0){ // this test is for fixing the ajax bug
-		$("body").append("<p id='back-top'><a href='#top'><span id='button'></span><span id='link'>" + settings.scroll_to_top.label + "</span></a></p>");
+    $("body").append("<p id='back-top'><a href='#'><span id='button'></span><span id='link'>" + settings.scroll_to_top.label + "</span></a></p>");
 	}
 	// Preview function
 	$("input").change(function () {
 		// building the style for preview
 		var style="<style>#scroll-to-top-prev-container #back-top-prev span#button-prev{ background-color:"+$("#edit-scroll-to-top-bg-color-out").val()+";} #scroll-to-top-prev-container #back-top-prev span#button-prev:hover{ background-color:"+$("#edit-scroll-to-top-bg-color-hover").val()+" }</style>"
 		// building the html content of preview
-		var html="<p id='back-top-prev' style='position:relative;'><a href='#top'><span id='button-prev'></span><span id='link'>";
+    var html="<p id='back-top-prev' style='position:relative;'><a href='#'><span id='button-prev'></span><span id='link'>";
 		// if label enabled display it
 		if($("#edit-scroll-to-top-display-text").attr('checked')){
 		html+=$("#edit-scroll-to-top-label").val();
