made a few javascript changes