Updated how the js is added to the apge