Fixes js error, js render time is now 10+ seconds :cry:.