update for api and metadata; updated some JS libs; refactored user result