Some fixes for .phoenix.js