proper declaration od menuAimModule method
fixed variables declaration
added declaration of undefined variable
missed semicolon