more minor advanced js changes