Version 1.4 (added before/after login info, remove old config, use jquery)