JS script for AssociatingJS