formatted new.js