Separating map js