Added snap.js directive