hospital javascript additions