Yet another javascript validator