minor changes on client side js