add spec files for frontend js