Fixed it to work properly on FireFox