adjusted javascript linkage