upgrade frex.js