initial commit of phoenix.js

pinched wholesale from some guy on the net