Got build working across javascript versions