added javascript docs