Logout method fixed

Logout button on navbar had incorrect link, fixed that also icheck
button js code was moved from script.js to corresponding pages

Fixes #2 bug