added js aexamples