using js as default