A Javascript's alert replacement project