complete pos_v1/src/main.js