add nose code to main.js