Added jgrowl. Refactor js.