some js-finetuning