add typeof snippet for JS