i think this js thing is bad