addded shortcut js for image groups and weight classes