added .toLowerCase() to js