Fixed JSLint error, disabled unused function