Fixed all JSHint problems