For type-checking Javascript values