don't know why i didnt do this sooner
js stuff