moved js to related page