initial setup and change permissions on samewave.js
setting up.