Some various fixes: internal instead of public, minor refactoring of js and readme update.