js: do not register disabled js plugins scripts