hardcoded image filenames in javascript, workaround