Not much in in Javascript - just the part that displays the ad. All the intelligence is on the server, mostly in Java.