Fixed js hinting issues