added valid-targets.js and integration with renderer