Added a message to show when statistics are not available yet and removed unused javascript code