Replaced JSP with JS client code