javascript: inline isNull