Remove unused "append_query" function
Fix misssed semicolon in js test
Move EventDispatcher class to a separate namespace