javascript code and readme documentation