Strict js compiler check and fixed warnings