Adding changes of swtmaker.js, checks if a given URL is an image or not, loads the respective component of swtr app.