fixed some js and stuff