Updated Javascript