fixed the JSCS warnings/errors