Updated Javascript libraries and fixed UI bugs