Small JavaScript  library for checking variable types