I guess my question, before going any further, is to ask why you want to redirect to http? Half the integrity of a secure connection is the data being transmitted from a secure point. Lots of sites let users browse pages that don't involve user input ("Home", "About Us") over a standard http connection but when you link to the page with the login form. You go to https://.
A great related-question: https://security.stackexchange.com/questions/1692/is-posting-from-http-to-https-a-bad-practice.
Anyway, the trouble with your javascript is that you aren't checking the the protocol, so you're just infinitely telling the page to redirect.
You can easily adapt the answer from this question: Detect HTTP or HTTPS then force HTTPS in JavaScript
The trouble is that this really isn't a task for javascript. .htaccess/IIS-rewrite can do this for you.
Do you want every https page to redirect to its http:// counterpart? URL rewriting via .htaccess or IIS can do this.
You can learn a lot from this answer: Rewriting URLs from https:// to http:// in IIS7 for IIS.
You can learn from this answer for .htacess: Https to http redirect using htaccess
Cold Fusion can also do this but I prefer to let .htacess handle sitewide redirects.
<cfif cgi.https eq 1>
<cflocation url="http://www.draoms.com/login.cfm">
</cfif>
You can redirect every https-accessed page to this, you each page to it's http counterpart using something like this.
<cfif cgi.https eq 1>
<cflocation url="http://www.draoms.com/#cgi.script_name#?#cgi.query_string#">
</cfif>
Again, if it's a global operation especially, I feel like .htaccess or IIS handles this exquisitely.