JSLint will throw the "Unexpected 'else' after 'return'" error when it encounters an else block following an if block that contains a return statement. Here's some example code:
This error is raised to highlight a completely pointless piece of code. If execution enters the if block, the function will return. There will be no way execution can enter the else block. Therefore, you can simply omit the else block and place its contents directly after the if block. Here's the above snippet again, without the error: