Fixed Javascript alert bug

Signed-off-by: Peter Brenner <peter@phpwerks.com>