updated js a bit..