minor JS tidying
ignore .Rhistory files