QIE uses JSHint to validate javascript code. JSHint expects functions that start with a capital letter to be object definitions. To resolve this error you can rename your function to start with a lower case letter, or simply ignore the error message.