use require instead of WDN

In some cases WDN.jQuery(function() { was not firing soon enough
Merge pull request #4 from mfairchild365/master

Fix login problem where the login link was not pointing to the correct url