added more js features