attach js