Related resources for session using JavaScript