add js and ajax beginnings