marrying javascripts