Moved mongoose js init