Understanding and Monitoring Embedded Web Scripts