It's a little involved right now, so you may just end up leaving in your hacky JS (although we are looking at improving the process). There are some community posts talking about it, and I also thought this article was a good, in depth approach: http://edwardunthank.com/blog/how-to-make-responsive-landing-pages-in-marketo/