migrated to require js
directive fixed.