Added javascript for removing parts.