[image-tagging] More javascript refactoring