js and scala