Fixed a bug that JSHint was complaining about