Updated the Handlebars.compile calls when using the inline template option, fixed incorrect callback call in the modalClose method,  added callbackModalReady, fixed markerImg setting