More work on newrecipe page - javascript