added ability to set a different JS file for snapping images - Non JS usage