simple javascript visualization