mercury javascript added