adjusting how javascript loads