adding docs js