moved js out