Slight modifications made to make JSLint happy.