fixing a js block