Changed main.jsp content loading method to JS