added js plugin and documaentation