updated javascript docs