added client side javascript unit tests