The result of javascript functions is dropped if it is undefined