Fix: some corrections advised by JSHint