edit employee in js and controller