adding js ref