Fix authentication issue, remove unnecessary js libraries