minor js updates(cleaning)