Refact jsps