[] add comments to frontend js and fix post saving data not having default values