js apps exam solution