updated readme, fixed js error