An Event Based Javascript embeded PHP Framework