Tidying up deployment recipe and sorting out JS