Added partition example js