move img-switcher js to module