updated js a bit