Changed the php madlib how to to js