added basic stats js program