This should be before msTouchAction and msTouchAction should be an else if. And you should use !== as Toby pointed out above.