JS Fixes

- Origin check moved from OnResultExecuting to OnActionExecuting
- Fixed Logout function