added basic output js to show functions called