Update plugin to be module, also add docs, tests, built files and javascript file.