Fixed stupid ascii char in isWindow function. Fixed so val function works correct with numbers and null/undefined values. Adding more tests.