Converting Aulx.js to constructor