add Basic Callback Function from JavascriptIsSexy.com