Ensure an external javascript file called from plugin is loaded after jquery is called

Try this:

add_action('init','gallery_sugar_js_init');

function gallery_sugar_js_init() {
  wp_enqueue_script( 'gallery_sugar_js', plugins_url( '/js/gallery_sugar.js', __FILE__ ), array( 'jquery' ) );
}

Check Function Reference for more info.