Fixed some minor issues that JavaScript lint pointed out.