Unofficial and unfinished mega.co.nz implementation for JS