Removed buggy rendering code

using $.detach() didn't seem to work properly. Removing it until I have time to take a closer look at how it should behave/be written