cleaned up small js error