javascript code md