support production mongodb and compile js
remove js file and active record config