updated all scripts to be compatible with WordPress 3.9