Check if a string is lower case in JavaScript