minor changes, random thought js fix