In my new branch i used a cached div element instead of recreating it each time. Tested it and it works fine.