Fixed bug that stopped js in browser requiring next generation