Wrap all custom JS files in closure and try/catch blocks.