Fixed warnings from JavaScript inspection