added some hacky js