Proper keyword escaping on the client-side