comments for clarity
fix to satisfy javascript strict mode: which fixes some errors