Add ace javascript for release mode and fix new view bug