cleaned up js code, added info-content template