I don't know how to do that in JS. Take what you can get :P