fixed minor errors reported by JSHint

Unfortunately I cannot rebuild the dw-2.0.js yet.