Refactored JS into prototypes and added labour cost