fixed js error and improved README