js algne, need to change