fixed js a bit