update JavaScript doc