Shortened jsp codes (more DRY)
Fixed html, js errors and warnings