MOD: fix the jslint errors for switch and case statement