Erroneous function expression instead of declaration

With function expression module will return Object { drawLine=undefined, drawRect=undefined, drawCircle=undefined} becouse returning POJO happens before execution of expression. Other way is to switch places of return part and "public methods" part.