Closure warnings

Fixed all the closure warnings reported after loading the code tree with WebStorm