update usage of front.js