Working Javascript, CakePHP Style Conventions, work on better popup prompt needed