fix all js errors during bootstraping