javascript plot post