Web scripting code for nam app