Change the way that dynamic js is handled