Added JavaScript documentation